package org.liu.simpleTank.envElement;

import org.liu.simpleTank.CONSTS;
import org.liu.simpleTank.EnvElement;

public final class EnvFactory {
	public static EnvElement create(int type) {
		if(type == CONSTS.BRICK)
			return new Brick();
		if(type == CONSTS.STEEL)
			return new Steel();
		if(type == CONSTS.GRASS)
			return new Grass();
		return new EnvElement(type);
	}
}
